package cn.iocoder.yudao.framework.business.interest.dao;

import cn.iocoder.yudao.framework.business.basic.dao.mapper.CoreMapper;
import cn.iocoder.yudao.framework.business.interest.pojo.po.InterestEntity;
import jakarta.annotation.Nullable;

import java.util.List;
import java.util.Set;

/**
 * 喜好 Mapper，由子类继承，子类标注 @{@link org.apache.ibatis.annotations.Mapper}
 *
 * @author 山野羡民
 */
//@org.apache.ibatis.annotations.Mapper
public interface InterestMapper<DO extends InterestEntity> extends CoreMapper<DO> {

    DO selectOneByBizIdAndUserId(Long bizId, Long userId, @Nullable Boolean recycled);

    List<DO> selectListByBizIdsAndUserId(Set<Long> bizIds, Long userId);

}
